import axios from './index'
import qs from 'qs'

// 发送消息
export const addMsg = (data) => {
  return axios.post('/chat/addMsg?', {
    ...data
  })
}
// 获取聊天记录
export const getChatHistroy = (params) => axios.get('/chat/getChatHistroy?' + qs.stringify(params))

// 获取私信列表
export const getChatlist = (params) => axios.get('/chat/getchatlist?' + qs.stringify(params))
